package cn.itcast.dao.company;

import cn.itcast.domain.company.Company;
import org.springframework.data.repository.query.Param;

import java.util.List;

public interface CompanyDao {

    //查询全部
    List<Company> findAll();

    void save(Company company);

    void update(Company company);

    Company findById(String id);

    void delete(String id);

    long findCount();

    List findPage(@Param("beg") int beg, @Param("end") int end);
}
